<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>image-cut</title>
  <link rel="stylesheet" href="./assets/reset.css" />
  <link rel="stylesheet" href="./assets/main.css" />
  <link rel="stylesheet" href="./assets/rect.css" />
</head>
<!-- 图片裁剪 -->
<body>
  <div id="root">
    <div id="tool" class="tool">
      <span id="insert-img" title="插入你想要截图的图片">插入图片</span>
      <span id="start-paint" title="绘制矩形框并在右侧展示区生成canvas">开始截图</span>
      <span id="clear" title="清除矩形框并清除右侧截图">清除截图</span>
      <span id="export-clip" title="将右侧截图下载到本地">导出截图</span>
    </div>
    <div class="container">
      <div id="control" class="area">
        <div id="rect" class="rect">
          <span class="left-top dot"></span>
          <span class="middle-top dot"></span>
          <span class="right-top dot"></span>
          <span class="right-middle dot"></span>
          <span class="right-bottom dot"></span>
          <span class="middle-bottom dot"></span>
          <span class="left-bottom dot"></span>
          <span class="left-middle dot"></span>
        </div>
        <div class="img-box">
          <img />
        </div>
      </div>
      <div id="display" class="area display">
        <canvas></canvas>
      </div>
    </div>
  </div>
  <!-- 矩形框脚本 -->
  <script type="module" src="./srcipt/rect.js"></script>
  <!-- 主控制区脚本 -->
  <script type="module" src="./srcipt/main.js"></script>
</body>
</html>